<?
if ($set_path)
		$lPath=$set_path . "/";
	else 
		$lPath="";
require($lPath . "admin/libs/Smarty.class.php");
class TplLoad extends Smarty 
{
function TplLoad()
{
	// Class Constructor. These automatically get set with each new instance.
	global $set_path,$set_template_dir;
	if (!$set_template_dir)
		$set_template_dir="templates_new";
		
	if (isset($_SESSION["set_template_dir"]))
		$set_template_dir=$_SESSION["set_template_dir"];
	
	if ($set_path)
		$lPath=$set_path . "/";
	else 
		$lPath="";
		
	$this->Smarty();
	$this->template_dir = $lPath."admin/templates_new_src/";
	$this->compile_dir = $lPath."admin/config/templates_c/";
	$this->config_dir = $lPath."admin/config/configs/";
	$this->cache_dir = $lPath."admin/config/cache/";
	$this->caching = false;
   }
}
?>